package red.lsk.business.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import red.lsk.common.annotation.Excel;
import red.lsk.common.core.domain.BaseEntity;

/**
 * 会员管理对象 biz_member
 * 
 * @author ruoyi
 * @date 2024-05-09
 */
public class BizMember extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private String id;

    /** 会员姓名 */
    @Excel(name = "会员姓名")
    private String name;

    /** 手机号码 */
    @Excel(name = "手机号码")
    private String phone;

    /** 电子邮箱 */
    @Excel(name = "电子邮箱")
    private String email;

    /** 账户余额 */
    @Excel(name = "账户余额")
    private BigDecimal balance;

    /** 总消费 */
    @Excel(name = "总消费")
    private BigDecimal totalConsumption;

    /** 积分 */
    @Excel(name = "积分")
    private BigDecimal points;

    /** 最后消费时间 */
    @JsonFormat(pattern = "yyyy-MM-dd  HH:mm:ss ")
    @Excel(name = "最后消费时间", width = 30, dateFormat = "yyyy-MM-dd  HH:mm:ss")
    private Date lastConsumeTime;

    /** 会员等级 */
    @Excel(name = "会员等级")
    private String level;

    /** 折扣比例(九折为90,两位小数) */
    @Excel(name = "折扣比例")
    private BigDecimal discountRatio;

    /** 会员生日 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "会员生日", width = 30, dateFormat = "yyyy-MM-dd")
    private Date birthdate;

    public void setId(String id) 
    {
        this.id = id;
    }

    public String getId() 
    {
        return id;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setPhone(String phone) 
    {
        this.phone = phone;
    }

    public String getPhone() 
    {
        return phone;
    }
    public void setEmail(String email) 
    {
        this.email = email;
    }

    public String getEmail() 
    {
        return email;
    }
    public void setBalance(BigDecimal balance) 
    {
        this.balance = balance;
    }

    public BigDecimal getBalance() 
    {
        return balance;
    }
    public void setTotalConsumption(BigDecimal totalConsumption) 
    {
        this.totalConsumption = totalConsumption;
    }

    public BigDecimal getTotalConsumption() 
    {
        return totalConsumption;
    }
    public void setPoints(BigDecimal points) 
    {
        this.points = points;
    }

    public BigDecimal getPoints() 
    {
        return points;
    }
    public void setLastConsumeTime(Date lastConsumeTime) 
    {
        this.lastConsumeTime = lastConsumeTime;
    }

    public Date getLastConsumeTime() 
    {
        return lastConsumeTime;
    }
    public void setLevel(String level) 
    {
        this.level = level;
    }

    public String getLevel() 
    {
        return level;
    }
    public void setDiscountRatio(BigDecimal discountRatio) 
    {
        this.discountRatio = discountRatio;
    }

    public BigDecimal getDiscountRatio() 
    {
        return discountRatio;
    }
    public void setBirthdate(Date birthdate) 
    {
        this.birthdate = birthdate;
    }

    public Date getBirthdate() 
    {
        return birthdate;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("phone", getPhone())
            .append("email", getEmail())
            .append("balance", getBalance())
            .append("totalConsumption", getTotalConsumption())
            .append("createTime", getCreateTime())
            .append("points", getPoints())
            .append("createBy", getCreateBy())
            .append("updateTime", getUpdateTime())
            .append("updateBy", getUpdateBy())
            .append("lastConsumeTime", getLastConsumeTime())
            .append("level", getLevel())
            .append("discountRatio", getDiscountRatio())
            .append("birthdate", getBirthdate())
            .toString();
    }
}
